﻿using Mysoft.Tasks.Queue.IService.Events;

namespace Mysoft.Tasks.Queue.IService.IEvents
{
    /// <summary>
    /// EventBus消息处理
    /// </summary>
    /// <typeparam name="TEvent"></typeparam>
    public interface IEventHandler<TEvent> where TEvent : IEvent
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        Task Handle(EventHandlerArgs<TEvent> args);
    }
}
